package com.goldman.aplt.repo.seq;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.goldman.aplt.entity.seq.MsbSequence;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zw
 * @since 2023-09-20
 */
public interface MsbSequenceMapper extends BaseMapper<MsbSequence> {

    @Select("select * from msb_sequence where seq_code = '${seqCode}' and identifier_segment = '${identifierSegment}' for update")
    public MsbSequence selOneWithLock(@Param("seqCode") String seqCode, @Param("identifierSegment") String identifierSegment);

}
